//
//  WDTextFieldLimit.h
//  Zhihuijinfu
//
//  Created by 王笛 on 2017/1/7.
//  Copyright © 2017年 王笛. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@protocol WDTextFieldLimitDelegate;

@interface WDTextFieldLimit : NSObject <UITextFieldDelegate>
/** 代理 */
@property(nonatomic, weak) id<WDTextFieldLimitDelegate> delegate;
/** 最大值 */  
@property (strong, nonatomic) NSString *maxV;
/** 小数点的位数 */
@property (assign, nonatomic) NSInteger digit;

@end

@protocol WDTextFieldLimitDelegate <NSObject>

/** 当textFiled值改变时调用该方法 */
- (void)valueChange:(id)sender;

- (void)endEditing;

@end
